package com.znufe.exam.utility;

/**
 * @ProjectName: 08-uexam
 * @Package: com.znufe.exam.utility
 * @ClassName: StringUtil
 * @Author: bot
 * @Description:
 * @Date: 2020/6/17 15:58
 * @Version: 1.0
 */
public class StringUtil {

    /*
     * string倒序输出
     * 定义成一个StringBuffer类，用StringBuffer类中的reverse()方法直接倒序字符串。
     */
    public static String reverseString(String str) {
        StringBuffer buffer = new StringBuffer(str);
        return buffer.reverse().toString();
    }


}
